<div class="networks view">
<h2><?php  __('Network');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $network['Network']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Computer'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($network['Computer']['name'], array('controller' => 'computers', 'action' => 'view', $network['Computer']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $network['Network']['name']; ?>
			&nbsp;
		</dd>
	</dl>

<div class="right">
		<?php echo $this->Html->link(__('Edit Network', true), array('action' => 'edit', $network['Network']['id'])); ?> &nbsp; &nbsp; &nbsp;
		<?php echo $this->Html->link(__('Delete Network', true), array('action' => 'delete', $network['Network']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $network['Network']['id'])); ?> &nbsp; &nbsp; &nbsp;
                <?php echo $this->Html->link("Back to Computer", array('controller' => 'computers', 'action' => 'view', $network['Computer']['id'])); ?>
</div>

	<h3><?php __('IP Configuration');?></h3>
	<?php if (!empty($network['Ipconfig'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th width="200px"><?php __('Name'); ?></th>
		<th><?php __('Description'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($network['Ipconfig'] as $ipconfig):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $ipconfig['name'];?></td>
			<td><?php echo $ipconfig['description'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'ipconfigs', 'action' => 'view', $ipconfig['id']), array('title'=> 'View IP Configuration','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'ipconfigs', 'action' => 'edit', $ipconfig['id']), array('title'=> 'Edit IP Configuration','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'ipconfigs', 'action' => 'delete', $ipconfig['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ipconfig['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="right">
	<?php echo $this->Html->link(__('New Ipconfig', true), array('controller' => 'ipconfigs', 'action' => 'add/'.$network['Network']['id']), array('title' => 'Add a New IP Configuration', 'onclick' => "Modalbox.show(this.href, {title: this.title, width: 500}); return false;"));?>
	</div>

	<h3><?php __('Local Accounts');?></h3>
	<?php if (!empty($network['LocalAccount'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Name'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($network['LocalAccount'] as $localAccount):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $localAccount['name'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'local_accounts', 'action' => 'edit', $localAccount['id']), array('title'=> 'Edit Local Account','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'local_accounts', 'action' => 'delete', $localAccount['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $localAccount['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="right">
	<?php echo $this->Html->link(__('New Local Account', true), array('controller' => 'local_accounts', 'action' => 'add/'.$network['Network']['id']), array('title' => 'Add a Local Account', 'onclick' => "Modalbox.show(this.href, {title: this.title, width: 500}); return false;"));?>
	</div>


	<h3><?php __('Printers');?></h3>
	<?php if (!empty($network['Printer'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th width="200px"><?php __('Name'); ?></th>
		<th><?php __('Driver'); ?></th>
		<th><?php __('Port'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($network['Printer'] as $printer):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $printer['name'];?></td>
			<td><?php echo $printer['driver'];?></td>
			<td><?php echo $printer['port'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'printers', 'action' => 'edit', $printer['id']), array('title'=> 'Edit Printer','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'printers', 'action' => 'delete', $printer['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $printer['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="right">
	<?php echo $this->Html->link(__('New Printer', true), array('controller' => 'printers', 'action' => 'add/'.$network['Network']['id']), array('title' => 'Adding a Printer', 'onclick' => "Modalbox.show(this.href, {title: this.title, width: 500}); return false;"));?>
	</div>

	<h3><?php __('Shared Folders');?></h3>
	<?php if (!empty($network['Share'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th width="200px"><?php __('Name'); ?></th>
		<th><?php __('Description'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($network['Share'] as $share):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $share['name'];?></td>
			<td><?php echo $share['description'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'shares', 'action' => 'view', $share['id']),array('title'=> 'View Folder','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'shares', 'action' => 'edit', $share['id']),array('title'=> 'Edit Folder','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'shares', 'action' => 'delete', $share['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $share['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="right">
	<?php echo $this->Html->link(__('New Share', true), array('controller' => 'shares', 'action' => 'add/'.$network['Network']['id']), array('title' => 'Adding a Shared Folder', 'onclick' => "Modalbox.show(this.href, {title: this.title, width: 500}); return false;"));?>
	</div>
</div>
